import allure

from pages.base_page import BasePage
from selenium.webdriver.common.by import By
from settings import ENV

class HomePage(BasePage):

    #元素定位器
    #文本——用户手机号
    text_userphone =(By.XPATH,"//span[@class='_side-banner-footer-text_iejc2_93']")


    def __init__(self, driver):
        super().__init__(driver)
        self.url = ENV.URL_ushannon_home_page_dev

    @allure.feature("获取用户登录手机号")
    def get_userphone(self)->str:
        #返回用户手机号
        return self.get_text(self.text_userphone)



if __name__ == '__main__':
    print()